/**
 * jims
 */
package com.jims.master.modules.finance.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.common.web.impl.BaseDto;
import com.jims.master.modules.finance.entity.OutpAcctMaster;
import com.jims.master.modules.finance.entity.OutpBillItems;
import com.jims.master.modules.finance.entity.OutpRcptMaster;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 门诊收费记录明细DAO接口
 * @author chentao
 * @version 2017-03-06
 */
@MyBatisDao
public interface OutpBillItemsDao extends CrudDao<OutpBillItems> {
    /***
     * 收费记录明细
     * @param rcptId
     * @return
     */
	public List<OutpBillItems> findListRcpt(@Param("rcptId") String rcptId);

    /**
     * 结账时查询收费明细
     * @param outpAcctMaster
     * @return List<OutpBillItems>
     * @author 赵宁
     */
    public List<OutpBillItems> findItems(OutpAcctMaster outpAcctMaster);


    /**
     * 按月查询收费数据
     * @param orgId 机构id
     * @param startDate 开始时间
     * @param endDate  结束时间
     * @return
     * @author zhangyao
     */
    public List<BaseDto> queryMonthList(@Param("orgId") String orgId,@Param("startDate")Date startDate,@Param("endDate")Date endDate);

    /**
     * 根据主表流水号查询明细
     * @param outpBillItems
     * @return
     * @author 赵宁
     */
    public List<BaseDto> findListItems(OutpBillItems outpBillItems);

}